package cn.calin.day05.demo11;

import java.util.ArrayList;

public class MainRedPacket {
    public static void main(String[] args) {
        QunZhu qunzhu=new QunZhu("群主",100);
        moment one=new moment("成员a",0);
        moment two=new moment("成员b",0);
        moment three=new moment("成员c",0);

        qunzhu.show();
        one.show();
        two.show();
        three.show();
        System.out.println("=============");

        // 群主总共发20块，分3个红包
        ArrayList<Integer> redList=qunzhu.send(20,3);
        //三个普通成员收红包
        one.receive(redList);
        two.receive(redList);
        three.receive(redList);

        qunzhu.show();
        one.show();
        two.show();
        three.show();
    }
}
